<template>
  <a-config-provider v-bind="globalConfigs">
    <router-view>
      <template #default="{ Component }">
        <component :is="Component">
          <div id="subapp-container"></div>
        </component>
      </template>
    </router-view>
  </a-config-provider>
</template>
<script lang="ts">
// 日期中文
import moment from 'moment';
import 'moment/locale/zh-cn';
moment.locale('zh-cn');
// 引入中文包
import zhCN from 'ant-design-vue/es/locale/zh_CN';
import { defineComponent } from 'vue';
// // 响应式
import { AppDeviceEnquire } from '@/utils/enquire';
export default defineComponent({
  setup() {
    AppDeviceEnquire();
    return {
      globalConfigs: {
        locale: zhCN, //语言
      },
    };
  },
});
</script>
<style lang="less">
body {
  margin: 0 !important;
}
#app {
  height: 100%;
}
#subapp-container {
  width: 100%;
  height: 100%;
}
</style>
